import request from "@/utils/request";

// 用户列表
export async function role(params?: any) {
	return request("/role/roleList", {
		params,
	});
}
// 更改状态
export async function status(data: any) {
	return request("/shopAdmin/add", {
		method: "POST",
		data,
	});
}
// 根据id删除商家管理员
export async function remove(id: any) {
	return request("/shopAdmin/del", {
		method: "POST",
		data: {
			id,
		},
	});
}
export async function userStatistics(params: any) {
	return request("/user/user-statistics", {
		method: "GET",
		params,
	});
}

export async function userLoginLog(params: any) {
	return request("/user/login-log-list", {
		method: "GET",
		params,
	});
}

// 审核
export async function boxAudit(params: any) {
	return request("/box/audit", {
		method: "POST",
		data: { ...params },
	});
}
